#include "dkglTimer_Win32.h"


namespace DKGL
{
	TimerImpl::TimerImpl()
	{
		QueryPerformanceFrequency(&_sysTickPerSec);
	}

	TimerImpl::~TimerImpl()
	{
	
	}

	float TimerImpl::getTimeInSec() const
	{
		LARGE_INTEGER tick;
		QueryPerformanceCounter(&tick);

		return static_cast<float>(tick.QuadPart)/_sysTickPerSec;
	}
}